package com.miao.im.support.handler;

import com.miao.im.common.Message;
import com.miao.im.server.session.SessionContext;
import reactor.core.publisher.Mono;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/3/1 14:20
 * @Description:
 */
public interface IMessageHandler {

    void read(Message message);

    Mono<Void> dispatch(Message message, SessionContext sessionContext);
}
